<?php
    function smsContent($v,$time=""){
        $str ='你好，'.$v['realname'];
        if($v['extra']['sex']=='1'){
            $str.="先生";
        }elseif($v['sex']=='2'){
            $str.="女士";
        }
		
        if($time){
            $str.='请于'.$time."携带以下资料原件：";            
        }else{
            $str.="，我是融兴银行客户经理李乾坤，您在我行申请的卡车按揭分期已受理，请您准备以下几项资料的原件，";
        }
        $str.="身份证、户口本整本、驾驶证、";
        if($v['extra']['marry']=="2"){
            $str.="结婚证、";
        }elseif($v['extra']['marry']=="3"){
            $str.="离婚证、";
        }
        $str.="挂靠协议原件（有骑缝章）、首付收据、购车合同、营业执照复印件加盖公章、营业执照照片，";
        if($time){
            $str.='到龙华新区观澜人民路德莱斯义乌商贸城一层融兴银行观澜支行面签。';
        }else{
            $str.="准备就绪之后请直接回复短信OK，我给您安排面签时间。";
        }
        return $str;
    }
	$Date = date('n月j日',strtotime(date('Y').'-'.date('m').'-'.(date('d')+1)));
?>
<div class="layui-btn-group">
	<a class="layui-btn" href="__APP__/Loan/topdf/id/{:input('id')}.html"><i class="fa fa-file-pdf-o"></i>导出PDF</a>
	<a class="layui-btn" href="__APP__/Loan/toword/id/{:input('id')}.html"><i class="fa fa-file-word-o"></i>导出word</a>
	<a class="layui-btn" href="__APP__/Loan/tuijianhan/id/{:input('id')}.html"><i class="fa fa-file-word-o"></i>导出按揭客户推荐函</a>
	<a class="layui-btn" href="__APP__/Loan/yuqichufa/id/{:input('id')}.html"><i class="fa fa-file-word-o"></i>导出逾期处罚决定书</a>
</div>
<table class="layui-table">
	<colgroup><col width="150"></colgroup>
	{Data:article name="Loan" id="request" var="vo"}
	<tbody>
		<tr>
			<th>手机号码</th>
			<td>{$vo.extra.phone}</td>
		</tr>
		<tr>
			<th>短信内容</th>
			<td>{$vo|smsContent}</td>
		</tr>
		<tr>
			<th>面签短信</th>
			<td>{$vo|smsContent=$Date.'上午10点'}</td>
		</tr>
	</tbody>
</table>
<script type="text/javascript">
</script>